package com.designPatterns.observer;

public class Test {
	public static void main(String[] args) {
		ConcreteSubject subject=new ConcreteSubject();
		A a=new A(subject);
		B b=new B(subject);
		C c=new C(subject);
		subject.setHight(100.2);
		subject.setHumidity(0.88);
		subject.setTemperature(38);
		subject.update();
		c.getSubject().remove(c);
		subject.update();
		c.getSubject().registerObserver(c);
		subject.update();
	}
}
